const test = function(a,b){
    console.log(Array.from(arguments))   // [1,2],类数组通过[...arguments]、Array.from(arguments)转成数组
}
test(1,2)



const test1 = (a,...args)=>{
    console.log(a)   //1
    console.log([...args])  //[2,3]
}
test1(1,2,3)